import request from '@/utils/request'

// 查询signDNA列表
export function listNdaOne(query) {
  return request({
    url: '/signDNA/ndaOne/list',
    method: 'get',
    params: query
  })
}

// 查询signDNA详细
export function getNdaOne(id) {
  return request({
    url: '/signDNA/ndaOne/' + id,
    method: 'get'
  })
}

// 保存signDNA
export function saveNdaOne(data) {
  return request({
    url: '/signDNA/ndaOne/save',
    method: 'post',
    data: data
  })
}

// 删除signDNA
export function delNdaOne(id) {
  return request({
    url: '/signDNA/ndaOne/' + id,
    method: 'delete'
  })
}

// 导出signDNA
export function exportNdaOne(query) {
  return request({
    url: '/signDNA/ndaOne/export',
    method: 'get',
    params: query
  })
}

// 流程初始化数据
export function getByWfNodeId(id) {
  return request({
    url: '/signDNA/ndaOne/getByWfNodeId/' + id,
    method: 'get'
  })
}
